import 'package:bloc/bloc.dart';

import 'state.dart';

class TimerCubit extends Cubit<TimerState> {
  TimerCubit() : super(TimerState().init());

  ///自增方法
  void addition() {
    print("1111");
    emit(state.clone()..variable = ++state.variable);
  }
}
